package com.xq.notealiyun.controller;

import com.xq.notealiyun.uitl.NoteUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @title: NoteController
 * @Author Tan
 * @Date: 2020/8/3 18:03
 * @Version 1.0
 */
@Api("手机验证码测试")
@RestController
public class NoteController {
    @Autowired
    private NoteUtil noteUtil;

    @ApiOperation("发送短信")
    @PostMapping("/sendMsg")
    public String sendMsg(String phoneNumber){
        String code = noteUtil.SendSms(phoneNumber);
        return code;
    }
}